package exam;

/**
 * A present box for someone.
 * 
 * @author Branden Ogata
 *
 */

public class Present
{
  /**
   * The name of the individual giving the present.
   * 
   */
  private String giver;
  
  /**
   * The name of the individual who should receive the present.
   * 
   */
  private String recipient;
  
  /**
   * Creates a new Present.
   * 
   * @param giver The String containing the name of the one who gave the present.
   * @param recipient The String containing the name of the one who should receive the present.
   */
  
  public Present(String giver, String recipient)
  {
    this.giver = giver;
    this.recipient = recipient;
  }
  
  /**
   * Gets the name of the individual who gave the present.
   * 
   * @return this.giver The String containing the name of the individual who gave the present.
   * 
   */
  
  public String getGiver()
  {
    return this.giver;
  }
  
  /**
   * Gets the name of the individual to receive the present.
   * 
   * @return this.recipent The String containing the name of the individual to receive the present.
   * 
   */
  
  public String getRecipient()
  {
    return this.recipient;
  }
  
  /**
   * Returns the name of the recipient.
   * This toString is designed for use in an exam question that examines the recipient name,
   * which is why only the name of the recipient is used here.
   * 
   * @return this.recipient The String containing the name of the recipient.
   * 
   */
  
  @Override
  public String toString()
  {
    return this.recipient;
  }
}